package cn.young.javalearning.designpattern.prototype.deep;

import java.util.Date;

public class Main {
    public static void main(String[] args) throws Exception {
        QiTianDaSheng qiTianDaSheng = new QiTianDaSheng();
        qiTianDaSheng.setAge(new Date());
        qiTianDaSheng.setJiGuBang(new JiGuBang().setLength(11).setWitdh(222));
        QiTianDaSheng o = (QiTianDaSheng) qiTianDaSheng.deepClone();
        System.out.println("qiTianDasheng = [" + qiTianDaSheng.getJiGuBang().toString() + "]");
        System.out.println("clone = [" + o.getJiGuBang().toString() + "]");
//        System.out.println("qiTianDasheng = [" + qiTianDaSheng.getAge() + "]");
//        System.out.println("clone = [" + o.getAge() + "]");
    }
}
